package com.zyajac.springBootDemo.controller;

import com.zyajac.springBootDemo.service.TestService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.Map;

@Controller
@RequestMapping("/test")
public class TestController {

    @Resource(name = "TestService")
    private TestService testService;


    @RequestMapping("/current")
    @ResponseBody
    public Map<String ,Object> testCurrent(){
        return  testService.curVarTest();
    }
}
